package org.springblade.task.base.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springblade.task.base.entity.BaseVipUser;
import org.springblade.task.base.mapper.BaseVipUserMapper;
import org.springblade.task.base.param.BaseUserParam;
import org.springblade.task.base.service.IBaseVipUserService;
import org.springblade.task.base.vo.BaseVipUserVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: TODO
 * @author syncwt
 * @date ${date} ${time}
 * @version V1.0
 */
@Service
public class BaseVipUserServiceImpl extends ServiceImpl<BaseVipUserMapper, BaseVipUser> implements IBaseVipUserService {

	@Autowired
	BaseVipUserMapper baseVipUserMapper;

	@Override
	public Integer queryByPinListCount(BaseUserParam param) {
		return baseVipUserMapper.queryByPinListCount(param);
	}

	/**
	 * 查询今日VIP用户列表
	 * @param param
	 * @return
	 */
	public List<String> queryTodayVipUserList(BaseUserParam param) {

		return baseVipUserMapper.queryTodayVipUserList(param);
	}

	/**
	 * 查询VIP用户数
	 */
	public Integer queryVipUserCount(BaseUserParam param) {
		return baseVipUserMapper.queryVipUserCount(param);
	}

	/**
	 * 查询每日VIP用户数据
	 * @param param
	 * @return
	 */
	public List<BaseVipUserVO> queryDailyServiceTypeVipUserList(BaseUserParam param) {
		return baseVipUserMapper.queryDailyServiceTypeVipUserList(param);
	}

	/**
	 * 查询今日新增VIP数据列表
	 * @param param
	 * @return
	 */
	public List<BaseVipUserVO> queryVipUserList(BaseUserParam param) {
		return baseVipUserMapper.queryVipUserList(param);
	}
}
